package com.xcf.service.business.common.customs.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.entity.Page;

import com.xcf.service.business.common.customs.CustomsService;
import com.xcf.util.PageData;
@Service("CustomsServiceImpl")
public class CustomsServiceImpl implements CustomsService {
	
@Resource(name="daoSupport")
private  DaoSupport daosuport;

	@SuppressWarnings("unchecked")

	public List<PageData> seach(Page pd) throws Exception {
		return (List<PageData>)daosuport.findForList("CustomsMapper.seach",pd);
	}

	@Override
	public void save(PageData pd) throws Exception {
		daosuport.save("CustomsMapper.save", pd);
		
	}
           //通过id获取数据
	@Override
	public PageData findByUiId(PageData pd) throws Exception {
		
		return (PageData)daosuport.findForObject("CustomsMapper.findByUiId", pd);
	}
    //修改
	@Override
	public void editU(PageData pd) throws Exception {
		daosuport.update("CustomsMapper.editU", pd);
		
	}

	@Override
	public void deleteU(PageData pd) throws Exception {
		daosuport.delete("CustomsMapper.deleteU", pd);
		
	}
	
	
	
	
	

	

}
